<style>
	.element_right
	{
		float:right;
		width:175px;
	}
</style>
<?
$form_att = array('class'=>'custom submit_forms', 'id'=>'settings_form');
?>

<div class="row">
<div class="panel callout"><h6>Employee Settings</h6></div>
	<?if(isset($system_message)) echo $system_message;?>
	<?if(!empty($emp_user_data)): ?>
	<div class="panel">Settings for <?=strtoupper($emp_user_data->last_name) . ', ' . ucfirst($emp_user_data->first_name) . ' ' . ucfirst($emp_user_data->middle_name)?></div>
		<div>
			<?=form_open('employee_settings/change_settings/' . $emp_id, $form_att); ?>
				<div class="large-6 cloumns">
					<label>Username</label>
					<div class="row collapse">
						<div class="small-10 columns">
							<input type="text" name="username" id="username" value="<?=$emp_user_data->username?>" placeholder="Enter password or generate password..."/>
						</div>
						<div class="small-2 columns">
							<input type="button" name="gen_uname" id="gen_uname" class="button secondary small" value="Generate Username"></td>
						</div>
					</div>
				</div>
				
				<div class="large-6 cloumns">
					<label>Password</label>
					<div class="row collapse">
						<div class="small-10 columns">
							<input type="text" name="password" id="password" value="" placeholder="Enter password or generate password..."/>
						</div>
						<div class="small-2 columns">
							<input type="button" name="gen_pword" id="gen_pword" class="button secondary small" value="Generate Password">
						</div>
					</div>
				</div>
				
				<div class="large-12 columns element_right">
					<input type="button" class="button success small radius" id="submit_changes" value="Apply Changes">
				</div>
			<?=form_close(); ?>
		</div>
	</fieldset>
	<?endif;?>
</div>